package org.study.id.baidu.mapper;

import org.apache.ibatis.annotations.Param;
import org.study.id.baidu.model.WorkerNode;

/**
 * 接口的描述
 *
 * @author Administrator
 * @date 2021-05-27
 */
public interface WorkerNodeMapper {
    /**
     * 方法功能描述
     *
     * @param workerNode
     * @return int
     */
    int addWorkerNode(WorkerNode workerNode);

    /**
     * 方法功能描述
     *
     * @param hostName
     * @param port
     * @return org.study.mybatis.boot.model.WorkerNode
     */
    WorkerNode getWorkerNodeByHostPort(@Param("hostName") String hostName, @Param("port") String port);
}
